// 快捷访问子模块的数据
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.UserInfo.username,
  userId: state => state.user.UserInfo.userId,
  staffPhoto: state => state.user.UserInfo.staffPhoto,
  companyId: state => state.user.UserInfo.companyId, // 公司id快捷访问
  routes: state => state.permission.routes // 建议权限模块下的快捷访问
}
export default getters
